<link rel="stylesheet" type="text/css" href="<?php echo $this->baseUrl() ;?>/css/thumau.css" media="screen" />
<script src="<?php echo $this->baseUrl() ;?>/scripts/thumau.js" type="text/javascript"></script>
<script src="<?php echo $this->baseUrl() ;?>/scripts/tiny_mce/tiny_mce.js" type="text/javascript"></script>
 <script type="text/javascript">
  calltinymce();
</script>
<div class ="conten" >

    <table cellpadding="0"  cellspacing="0" class="tableconten" border="0">
        <tr>
            <td class="left_conten" >
            <!-- left  -->
               <div class="module-left">
                      <div class="t_m">
            			<div class="t_r">
            				<h3> 
                                Tạo mới 
            					<a class="toggleicon" href='#'><div onclick="slidetoggle('99')" class='shboxs99 show'><img src="<?php echo $this->baseUrl() ;?>/images/box/down1.png" /></div><div onclick="hslidetoggle('99')" class='hshboxs99 hidden'><img src="<?php echo $this->baseUrl() ;?>/images/box/down2.png" /></div></a>
            				</h3>
            				
            			</div>
            		  </div>
            		  <div id="box99" class="module-content">
            			<ul>
            				<li><img class="icons" src="<?php echo $this->baseUrl();?>/images/icon/icon-32-new_01.png" /><a href="<?php echo $this->baseUrl()?>/thumau/themthumau"   >Thêm thư mẫu  </a></li>
            				<li><img class="icons" src="<?php echo $this->baseUrl();?>/images/icon/icon-32-new_01.png" /><a href="<?php echo $this->baseUrl()?>/lienhe/">Thêm liên hệ</a></li>
            				<li><img class="icons" src="<?php echo $this->baseUrl();?>/images/icon/icon-32-new_01.png" /><a href=""> Gửi thư </a></li>
            				
            			</ul>
            		  </div>
            		  <div class="module-bottom">
            			<div class="md-bt-r"><div class="md-bt-l">&nbsp;</div></div>
            		  </div>	                  
               </div>
               
               <!-- thao tac 2 -->
               
               <div class="module-left">
                      <div class="t_m">
            			<div class="t_r">
            				<h3> 
                                Danh Sách
            					<a class="toggleicon" href='#'><div onclick="slidetoggle('98')" class='shboxs98 show'><img src="<?php echo $this->baseUrl() ;?>/images/box/down1.png" /></div><div onclick="hslidetoggle('98')" class='hshboxs98 hidden'><img src="<?php echo $this->baseUrl() ;?>/images/box/down2.png" /></div></a>
            				</h3>
            				
            			</div>
            		  </div>
            		  <div id="box98" class="module-content">
            			<ul>
            				<li><img class="icons" src="<?php echo $this->baseUrl();?>/images/icon/icon-32-contacts_01.png" /><a href="<?php echo $this->baseUrl()?>/thunhap/"   >Danh sách thư nháp </a></li>
            				<li><img class="icons" src="<?php echo $this->baseUrl();?>/images/icon/icon-32-contacts_01.png" /><a href="<?php echo $this->baseUrl()?>/thumau/index/"   >Danh sách thư mẫu </a></li>
            				<li><img class="icons" src="<?php echo $this->baseUrl();?>/images/icon/icon-32-contacts_01.png" /><a href="<?php echo $this->baseUrl()?>/lienhe/" >Danh Sách liên hệ</a></li>
            				<li><img class="icons" src="<?php echo $this->baseUrl();?>/images/icon/icon-32-contacts_01.png" /><a href="<?php echo $this->baseUrl()?>/thudagui/" > Danh sách thư đã gửi </a></li>
            				
            			</ul>
            		  </div>
            		  <div class="module-bottom">
            			<div class="md-bt-r"><div class="md-bt-l">&nbsp;</div></div>
            		  </div>	                  
               </div>            
               
            <!--  end left--> 
             </td>
            <td class="right_conten" >
            <div class="bao_benphai">
            <!-- right  -->
                <!-- breadcrumd-->
    			<div class="breadcrum" >
    				<ul>
    					<li class="home"><a href="<?php echo $this->baseUrl()?>/thumau/">Thư mẫu</a></li>
    					<li class="br_item"><span>Tạo mới thư mẫu</span></li>
    				</ul>
    			</div>
		    	<!-- end breadcrumd-->
		    	
		    	<!--  Start Thêm thư   -->
                <div class="container" style="  min-height: 400px !important;">
                    <div class="title_f">
                        <div  class="icon_viet"><span class="hinh_viet"> <img src="<?php echo $this->baseUrl()?>/images/icon/page_white_edit.png" align="absmiddle" /> </span> <span class="chu_viet" id="tex_viet"> Tên thư mẫu </span></div>
                    </div>
                    
                    <form name="taothumau" id='taothumau'  action="<?php echo $this->baseUrl()?>/thumau/addthumau" method="POST" onsubmit="return check_submit_addthumau();" >
				   <div class="tab_content"  style="display: block;">
		    		<div class="sectionFrm"> Thêm thư mẫu </div>
		    		<!--  Bên trái -->
		    		<div class="left_conten_form" >
		    			<div class="eleRow">
		    				<div class="eleCaption">Tên thư mẫu </div>
		    				<div class="eleBody">
		    					<input type="text" name="tenthumau" id="tenthumau" class="required" onkeydown="appentec(this.value);" /><span class="redtext">*</span>
		    				</div>
		    			</div>
		    			<div class="eleRow">
		    				<div class="eleCaption">Loại thư </div>
		    				<div class="eleBody">
		    					<select name="id_loai_thu" id="id_loai_thu">
                                    <?php foreach ($this->dmtm as $key){ ?>
                                    <option value="<?php echo $key['id'] ?>"><?php echo $key['ten_loai_thu']?></option>
                                    <?php }?>
		    					</select>
		    					
		    				</div>
		    			</div>
		    		</div>
		    		<!-- ben phải -->
		    		<div class="right_conten_form" >

		    			<div class="eleRow">
		    				<div class="eleCaption">Người tạo</div>
		    				<div class="eleBody">
		    					<input type="text" name="nguoitao" id="nguoitao" disabled="disabled" class="required email" value="<?php echo $this->name?>"/>
		    				</div>
		    				
		    			</div>		    				
		    			<div class="eleRow">
		    				<div class="eleCaption">Ngày tạo</div>
		    				<div class="eleBody">
		    					<input type="text"   disabled="disabled" value="<?php echo $this->today; ?>"/>
		    				</div>
		    				
		    			</div>			    			
			    						    						    		
		    		</div>
                    <!-- Div Tiny MCE  Soạn thảo thư mẫu -->
                    <div class="khung_soanthumau">
                         
                             <div class="chu_vietnoidung">Nội dung </div>
                             <div class="noidung_thu">
                                <textarea name="noidung_thu" id="noidung_thu"></textarea>
                             </div>
                           
                    </div>
                    <!-- Div Tiny MCE  Soạn thảo thư mẫu --> 
		    		<!-- Day form  -->
		    		<div class="day_form">
		    			<input type="hidden" value="<?php  echo $this->iddangnhap; ?>" name ="idnddn"/>
                        <input type="submit" class="save" value="Lưu lại" style="width:100px;" />
		    			<input type="button" onclick="javascript:history.go(-1);" class="save" value="Hủy bỏ" style="width:100px;"/>
		    		</div>
			        </div>
			        </form>
                </div>
		    	<!--  End them thư  -->
		    	
		    </div>	
            <!-- right -->
            </td>
            
        </tr>
    
    </table>
</div>